package team.pwy.testUtil;

import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import team.pwy.mapper.SeckillMapper;
import team.pwy.mapper.SessionMapper;

/**
 * @title: updateDB
 * @author: DaiLing
 * @description: TODO
 * @date: 2024/1/24 10:19
 */
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class updateDB {

    @Resource
    private SessionMapper sessionMapper;

    @Resource
    private SeckillMapper seckillMapper;

    /**
     * @author DaiLing
     * @description 更新电影放映日期
     * @date 2024/1/24 10:38
     */
    @Test
    public void updateSession() {
        sessionMapper.updateDB();
    }

    /**
     * @author DaiLing
     * @description 更新秒杀
     * @date 2024/3/18 10:10
     */
    @Test
    public void updateSecKill(){
        seckillMapper.updateSecKillTime();
    }
}
